/**
 * <p>Copyright (c) 2011 深圳市鹏途信息技术有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	东莞交通工程质量监督综合业务系统        </p>
 * <p>创建者   :	liuyang 
 * 
 * <p>描   述  :   DetnPetition.java for com.pengtu.entity.business.detection    </p>
 * 
 * <p>最后修改 : $: 2011-10-19-下午4:07:48 v 1.0.0	 liuyang   $     </p>
 * 
*/

package com.pengtu.entity.business.detection;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.pengtu.entity.business.BasicPetition;

/**
 * 交工验收检测申请
 * DetnPetition
 * 
 * 2011-10-19 下午4:07:48
 * 
 * @version 1.0.0
 * 
 */
@Entity
@Table(name = "T_Q_CASE_DETN_PETITION")
public class DetnPetition extends BasicPetition {

	/**
	 * serialVersionUID:TODO
	 *
	 * @since 1.0.0
	 */
	
	private static final long serialVersionUID = 1L;
	
	private FlowDetection flowDetection;
	private String cid;
	private Date detectionDate;
	/**
	 * flowDetection
	 *
	 * @return  the flowDetection
	 * @since   1.0.0
	 */
	@ManyToOne(targetEntity = FlowDetection.class, fetch = FetchType.LAZY)
	@JoinColumn(name = "FID")
	public FlowDetection getFlowDetection() {
		return flowDetection;
	}
	/**
	 * @param flowDetection the flowDetection to set
	 */
	public void setFlowDetection(FlowDetection flowDetection) {
		this.flowDetection = flowDetection;
	}
	/**
	 * cid
	 *
	 * @return  the cid
	 * @since   1.0.0
	 */
	@Column(name="CID")
	public String getCid() {
		return cid;
	}
	/**
	 * @param cid the cid to set
	 */
	public void setCid(String cid) {
		this.cid = cid;
	}
	/**
	 * detectionDate
	 *
	 * @return  the detectionDate
	 * @since   1.0.0
	 */
	@Column(name="DETECTIONDATE")
	@Temporal(TemporalType.DATE)
	public Date getDetectionDate() {
		return detectionDate;
	}
	/**
	 * @param detectionDate the detectionDate to set
	 */
	public void setDetectionDate(Date detectionDate) {
		this.detectionDate = detectionDate;
	}

}
